package com.chen.popj.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 每道题的做题记录
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SubmissionRecord {
    private Integer id; //提交记录唯一标识
    private Integer userId; // 用户id
    private Integer problemId; // 题目id
    private String language; //编程语言
    private String code; //源代码
    private LocalDateTime SubmissionTime; //提交时间
    private String result; //判题结果（如“通过”、“错误”、“超时”等）
    private Double score; //得分
}
